﻿using System;

namespace RexToy.UI.Controls
{
    public class FooterBar : Container
    {
        public FooterBar()
        {
            this.__dragEventBubble = false;
            this.__palette = Palette.A;
            this.__domNode = RexToy.UI.Controls.DomNode.Create(new DomNodeCreateOptions()
            {
                tag = Tag.Div,
                hashName = "container",
                className = "ui-bar ui-footer ui-bar-a"
            });
        }

        public override Palette Palette
        {
            get
            {
                return __palette;
            }
            set
            {
                var template = "ui-bar-{0}";
                this.__domNode.ReplaceClass(StringExt.Format(template, this.__palette), StringExt.Format(template, value));
                this.__palette = value;
            }
        }
    }
}
